<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">

<head>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <link th:href="@{/js/jquery.js}" rel="stylesheet" />
    <script th:href="@{/css/bootstrap.min.css}"  ></script>
    <script th:href="@{/js/bootstrap.min.js}"  ></script>

    <link rel="stylesheet" type="text/css" href="../static/css/bootstrap.min.css"/>
    <script src="../static/js/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script src="../static/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>


    <style type="text/css">
        #right{
            position: absolute;
            top: 80px;
            left:450px;
            width:1000px
        }
        table{

        }
        td{
            text-align: center;
        }
        .option{
            text-align: center;
        }
    </style>

</head>
<body>
<div th:replace="Top :: head"></div>
<div th:replace="Top :: left"></div>
<div id="right">
    <ul class="breadcrumb">
        <li><a href="/index">首页</a></li>
        <li><a href="">审核名单</a></li>
    </ul>
        <div >
            <h5 style="text-align: center">审核名单</h5>
        </div>
                <table class="table table-bordered" >
                    <tr>
                        <th width="8%">请假人</th>
                        <th width="8%">请假天数</th>
                        <th width="20%">请假原因</th>
                        <th width="8%">应扣工资</th>
                        <th width="10%">请假时间</th>
                        <th width="8%">审核状态</th>
                        <th width="8%">审批人</th>
                        <th width="10%">审核时间</th>
                        <th>操作</th>
                    </tr>
                    <tr th:each="holiday : ${holidaylist}">
                        <td th:text="${holiday.u_nickname}">Onions</td>
                        <td th:text="${holiday.h_day}">Onions</td>
                        <td th:text="${holiday.h_reason}">Onions</td>
                        <td th:text="${holiday.h_salary}">Onions</td>
                        <td th:text="${holiday.h_submit}">Onions</td>
                        <td th:switch="${holiday.h_statu}">
                            <div th:case="0" th:text="审核中">Onions</div>
                            <div th:case="1" th:text="未通过">Onions</div>
                            <div th:case="2" th:text="已通过">Onions</div>
                        </td>
                        <td th:text="${holiday.h_checkman}">Onions</td>
                        <td th:text="${holiday.h_checkdate}">Onions</td>
                        <td>
                            <a th:href="@{'tocheck?h_id='+${holiday.h_id}}" title="审批">审批</a>
                            <a th:href="@{'delHoliday?h_id='+${holiday.h_id}}" title="删除">删除</a>
                        </td>
                    </tr>
                </table>
</div>



</body>
<script th:inline="javascript">
    var msg=[[${msg}]];
    if (msg!=null){
        alert(msg);
        window.location.href='holidayIndex';
    }
</script>
</html>